Release 10.1A: OpenEdge Development:
Programming Interfaces
Basic tasks of a Progress SAX application
A typical Progress SAX application does the following:
- Creates a
SAX-readerobject.- Runs a persistent procedure that contains the callbacks.
- Configures the
SAX-readerobject by:- Starts the parser by calling
SAX-PARSE()orSAX-PARSE-FIRST().- Handles XML data passed to the callbacks as the parser proceeds.
- Monitors the state of the parse by checking error codes and the parse status after each call to
SAX-PARSE(),SAX-PARSE-FIRST(), andSAX-PARSE-NEXT().- Releases resources, including deleting the
SAX-readerobject.Most of these tasks can be performed using the attributes and methods of the
SAX-readerobject, which are summarized in Table 20–8.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |